﻿<phone:PhoneApplicationPage 
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
	xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
	xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
	xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
	mc:Ignorable="d" d:DesignWidth="480" d:DesignHeight="696"
	x:Class="Islamic_influence_in_Venetian_cuture.VideoIntro"
	FontFamily="{StaticResource PhoneFontFamilyNormal}"
	FontSize="{StaticResource PhoneFontSizeNormal}"
	Foreground="{StaticResource PhoneForegroundBrush}"
    SupportedOrientations="PortraitOrLandscape"	Orientation="Portrait"
	shell:SystemTray.IsVisible="True">
    
	<!--LayoutRoot è la griglia radice in cui viene inserito tutto il contenuto della pagina-->
	<Grid x:Name="LayoutRoot">
        <Grid.Background>
            <ImageBrush ImageSource="/Resources/pivot/3.png"/>
        </Grid.Background>
        <Grid.RowDefinitions>
			<RowDefinition Height="Auto"/>
			<RowDefinition Height="*"/>
		</Grid.RowDefinitions>
		
		<!--TitlePanel contiene il nome dell'applicazione e il titolo della pagina-->
        <StackPanel x:Name="TitlePanel" Margin="0,17,0,28" Background="#90202020">
            <TextBlock x:Name="ApplicationTitle" Text="{Binding Title}" Height="27" Style="{StaticResource PhoneTextNormalStyle}" TextAlignment="{Binding Culture, Converter={StaticResource TextAlignmentConverter}}" />
            <TextBlock x:Name="PageTitle" Text="{Binding IntroVideo}" Height="96" Margin="9,-7,0,0" Style="{StaticResource PhoneTextTitle1Style}" TextAlignment="{Binding Culture, Converter={StaticResource TextAlignmentConverter}}" />
		</StackPanel>

		<!--ContentPanel - inserire qui contuto aggiuntivo-->
        <Grid x:Name="ContentPanel" Grid.Row="1" Margin="12,0,12,0" Background="#90202020">
			<!--<Button Background="Black" Content="Video placeholder" Margin="0,0,0,69"/>-->
            <MediaElement Source="/Resources/IntroVideo.wmv" AutoPlay="True" x:Name="VideoFrame" Margin="0,0,0,69" />
            <Button Content="{Binding Skip}" VerticalAlignment="Bottom" d:LayoutOverrides="Width" Click="Skip_Click" Height="80"/>
		</Grid>
	</Grid>

    <phone:PhoneApplicationPage.ApplicationBar>
        <shell:ApplicationBar IsVisible="True" IsMenuEnabled="True">
            <!--<shell:ApplicationBarIconButton IconUri="/Images/appbar_button1.png" Text="Pulsante 1"/>
            <shell:ApplicationBarIconButton IconUri="/Images/appbar_button2.png" Text="Pulsante 2"/>-->
            <shell:ApplicationBar.MenuItems>
                <shell:ApplicationBarMenuItem x:Name="Arabic_bar" Text="Arabic" Click="Arabic_bar_Click" />
                <shell:ApplicationBarMenuItem x:Name="English_bar" Text="English" Click="English_bar_Click" />
                <shell:ApplicationBarMenuItem x:Name="Farsi_bar" Text="Farsi" Click="Farsi_bar_Click" />
                <shell:ApplicationBarMenuItem x:Name="Italian_bar" Text="Italiano" Click="Italian_bar_Click" />
            </shell:ApplicationBar.MenuItems>
        </shell:ApplicationBar>
    </phone:PhoneApplicationPage.ApplicationBar>
</phone:PhoneApplicationPage>